package com.cn.wanxi.service;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;

public class CompanyService {

    public CompanyModel getCompanyModel() {

        CompanyModel companyModel = new CompanyModel();//新建实体类，默认值，属性值为null
//
        CompanyDao companyDao = new CompanyDao();
        companyModel.setLogo(companyDao.getLogo());//set赋值，get取值,数据从dao数据层来
        companyModel.setPhone(companyDao.getPhone());
        companyModel.setNet(companyDao.getNet());
        companyModel.setEmail(companyDao.getEmail());
        companyModel.setLinePhone(companyDao.getLinePhone());
        companyModel.setAddress(companyDao.getAddress());
        companyModel.setVersion(companyDao.getVersion());
        return companyModel;
    }
}
